package com.lx.video.web;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lx.bilibili.entity.Board;
import com.lx.video.dao.BoardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lx
 * @since 2025-03-26
 */
@RestController
@RequestMapping("/board")
public class BoardController {

    @Autowired
    BoardMapper boardMapper;
    @RequestMapping("getBoard")
    public List<Board> getBoard() {
        return boardMapper.selectList(null);
    }
}
